define('formChapter',['text!../tpl/form-chapter.html','tool','common'],function(Template,tool,common){
    var App ={
    	template:Template,
    	mixins: [tool.toor,common.common],
    	mounted:function(){
    		var _this=this;
    		this.getDefaultUsers(this.submitJson.component[0].value);
    	},
    	data:function(){
    		return{
    			submitJson:{
				    "component": [
					    {
	    			   	  "name":"公司",
	    			   	  "value":'北京新七天'
	    			   },
	    			   {
	    			   	   "name": "章类型",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "外借/盖章",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "用途",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "开始时间",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "结束时间",
					       "value": ''
	    			   }
				    ]
				}
    		
    		}
    	},
    	watch:{
    		/*submitJson.component[0].value:function(val)
    		{
    			
    		}*/
    	},
    	methods:
    	{
    		selectChange:function(val)
    		{
    			 if(val)
				 {
				   	 this.getDefaultUsers(val);
				 }
    		}
    	}
    };
    return {
        app:App       
    };
});